package com.example.demo.vo;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 修改用户信息VO
 */
public class UserUpdateVO implements Serializable {

    /**
     * 用户id
     */
    private Long id;

    /**
     * 手机号码
     */
    @Pattern(regexp = "[0-9]{11,11}", message = "手机号必须为11位")
    private String mobilePhone;
    /**
     * 昵称
     */
    private String nickName;


    public String getMobilePhone() {
        return mobilePhone;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}
